package com.zte.warehouse.dao;

import com.zte.market.model.MarketOrderCondition;
import com.zte.market.model.MarketOrders;
import com.zte.warehouse.model.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface IOutWarehouseDao {

    /**
     * query
     *
     * @param
     * @return
     */
    //出库表
    //更新状态
    public int updateOutWarehose(OutWarehoseAdd outWarehoseAdd);

    public List<OutWarehose> queryOutWarehoseListByCondition(OutWarehouseCondition conn);

    public int OutWarehoseAdd(OutWarehoseAdd outWarehoseAdd);


    //订单操作
    public MarketOrders queryOrderState(String orderid);//验证订单审核状态

    //查询订单列表
    List<MarketOrders> queryOrdersByCondition(MarketOrderCondition condition);

    public int updateOrder(MarketOrders marketOrders);//更新订单表入库状态


    //仓库操作
    //更新金额
    public int updateWarehose(SingleWarehouse singleWarehouse);

    public SingleWarehouse selectWarehose(int indent);


    //库存操作
    //查询库存信息
    public List<StockInsert> queryStockMessage(String indent);

    //!查询库中是否有存该商品   WarehouseID,productId      ，  count
    public StockInsert queryIsStock(StockInsert stockInsert);

    //!更新库存商品数量   WarehouseID,productId      ，  count
    public int updateIsStock(StockInsert stockInsert);

    //插入库存信息
    public int InsertStockMessage(StockInsert stockInsert);





}
